package com.unience.ec2.eclipse.view;

import org.eclipse.ui.part.ViewPart;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Text;
import org.eclipse.swt.SWT;
import org.eclipse.swt.layout.GridData;

import com.unience.ec2.eclipse.config.Config;
import com.xerox.amazonws.ec2.GroupDescription;
import com.xerox.amazonws.ec2.ReservationDescription.Instance;


/**
* This code was edited or generated using CloudGarden's Jigloo
* SWT/Swing GUI Builder, which is free for non-commercial
* use. If Jigloo is being used commercially (ie, by a corporation,
* company or business for any purpose whatever) then you
* should purchase a license for each developer using Jigloo.
* Please visit www.cloudgarden.com for details.
* Use of Jigloo implies acceptance of these licensing terms.
* A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED FOR
* THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED
* LEGALLY FOR ANY CORPORATE OR COMMERCIAL PURPOSE.
*/
public class InstanceViewPart extends ViewPart {
    public static final String ID_VIEW =
        "com.unience.ec2.eclipse.view.InstanceViewPart"; //$NON-NLS-1$
        private Text title;

    Composite composite1;
    
    com.xerox.amazonws.ec2.ReservationDescription.Instance instance;
    
    /**
     * 
     */
    public InstanceViewPart() {
        super();
        instance = (Instance)Config.getInstance().getLastSelection();
    }

    /* (non-Javadoc)
     * @see org.eclipse.ui.IWorkbenchPart#createPartControl(org.eclipse.swt.widgets.Composite)
     */
    public void createPartControl(Composite parent) {
    	{
	    	parent.setSize(755, 304);
    	}
        composite1 = new Composite(parent, SWT.NULL);
        composite1.setLayout(null);
        {
        	title = new Text(composite1, SWT.NONE);
        	title.setText("Ec2 Instance Information ");
        	title.setBounds(255, 12, 166, 17);
        }
    }

    /* (non-Javadoc)
     * @see org.eclipse.ui.IWorkbenchPart#setFocus()
     */
    public void setFocus() {
        // TODO Auto-generated method stub
    }
    
    /**
     * Cleans up all resources created by this ViewPart.
     */
    public void dispose() {
        super.dispose();
    }
    
}
